import { createApp } from 'vue'
import App from '@/App.vue'
import pinia from './store'

// svg 插件需要配置
import 'virtual:svg-icons-register'
// 全局样式
import '@/styles/index.scss'
import 'element-plus/theme-chalk/dark/css-vars.css';

// 引入路由
import router from '@/router/index'
import '@/permission';

const app = createApp(App)

// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(pinia)
app.use(router)
app.mount('#app')
